export type DicDataItem = {
	/** 显示的label */
	label: string;
	/** 显示的value */
	value: string;
};

export type ColumnType = {
	/** 显示的label */
	label: string;
	/** 表单绑定的值 */
	prop: string;
	/** 类型 */
	type: "select" | "tree" | "number";
	/** 字典 */
	dicData?: any[] | (() => any[]);
	/** 字典类型映射 */
	props?: DicDataItem;
};

export type CrudOptionType = {
	column?: ColumnType[];
	group?: {
		column: ColumnType[];
	}[];
};
